package designpatterns.singleton;

/**
 * @program: MyTank
 * @description:
 * @author: 王术平
 * @create: 2021-01-06 12:44
 **/
public enum  SingleTonByEnum {
    INSTANCE;//可防止反序列化，反射
    public static SingleTonByEnum getInstance(){
        return INSTANCE;
    }
}
